// Yang Shuai  Copyright (c) 2022 https://yangbuyi.top.
// Copyright (c) 2022. Yangbuyi, personal projects are not allowed to be commercialized without permission.
// Please keep the information of the original author of the code. Thank you

package top.yangbuyi.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * @program: yangbuyi-face-demo
 * @ClassName: SysUserFaceInfo
 * @create: 2022-05-15 21:33
 * @author yangbuyi.top
 * @since： JDK1.8
 * @SysUserFaceInfo: ${desc}$
 **/
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`sys_user_face_info`")
public class SysUserFaceInfo {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 分组id
     */
    @TableField(value = "`group_id`")
    private Integer groupId;

    /**
     * 人脸唯一Id->对接用户ID
     */
    @TableField(value = "`face_id`")
    private String faceId;

    /**
     * 名字
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 年纪
     */
    @TableField(value = "`age`")
    private Integer age;

    /**
     * 邮箱地址
     */
    @TableField(value = "`email`")
    private String email;

    /**
     * 性别，1=男，2=女
     */
    @TableField(value = "`gender`")
    private Short gender;

    /**
     * 电话号码
     */
    @TableField(value = "`phone_number`")
    private String phoneNumber;

    /**
     * 人脸特征
     */
    @TableField(value = "`face_feature`")
    private byte[] faceFeature;

    /**
     * 创建时间
     */
    @TableField(value = "`create_time`")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "`update_time`")
    private Date updateTime;

    /**
     * 照片路径
     */
    @TableField(value = "`fpath`")
    private String fpath;

    public static final String COL_ID = "id";

    public static final String COL_GROUP_ID = "group_id";

    public static final String COL_FACE_ID = "face_id";

    public static final String COL_NAME = "name";

    public static final String COL_AGE = "age";

    public static final String COL_EMAIL = "email";

    public static final String COL_GENDER = "gender";

    public static final String COL_PHONE_NUMBER = "phone_number";

    public static final String COL_FACE_FEATURE = "face_feature";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_FPATH = "fpath";
}